class Segment
{Punct A,B;
 public
   Segment(Punct, Punct);
   double calculLungime() const;};

int Segment::calculLungime()
{double a,b,s;
 a=pow((*this).getA().getX()-(*this).getB().getX(),2.0);
 b=pow((*this).getA().getY()-(*this).getB().getY(),2.0);
 s=sqrt(a+b);
 return s;}

Segment::Segment(Punct pA,Punct pB)
{(*this).A=pA;
 (*this).B=pB;}

int main()
{Punct vA=Punct(2,3);
 Punct vB=Punct(4,5);
 Segment S;
 S=Segment(vA,vB);
 double l=S.calculLungime();
 printf("%d",l);
 return 0;}


 
